<?php
/**
*售后总监
*/
require('./include/init.php');

$redis = new Redis();
  //连接服务器
  $redis->connect("localhost");
  //授权
  $redis->auth("redis=pwd@2016");

//地址栏传来的地址,根据此地址

$address=$_REQUEST['address'];

switch ($address) {
  case '北京博瑞祥星汽车销售有限公司':
    $hash='4S_ServiceDirector_main_brxx';
    break;
  case '义乌市博奥汽车销售服务有限公司':
    $hash='4S_ServiceDirector_main_ywba';
    break;
  case '江苏天奥汽车销售服务有限公司':
    $hash='4S_ServiceDirector_main_jsta';
    break;
  case '广东粤奥汽车销售服务有限公司':
    $hash='4S_ServiceDirector_main_gdya';
    break;
  case '辽宁鑫迪汽车销售服务有限公司':
    $hash='4S_ServiceDirector_main_lnxd';
    break;
  case '成都新元素雅麓汽车销售服务有限公司':
    $hash='4S_ServiceDirector_main_cdyl';
    break;
  case '云南驰泰汽车销售服务有限公司':
    $hash='4S_ServiceDirector_main_ynct';
    break;
  case '宁夏奥立升汽车销售服务有限公司':
    $hash='4S_ServiceDirector_main_nxals';
    break;
  case '陕西奥诚汽车销售服务有限公司':
    $hash='4S_ServiceDirector_main_sxac';
    break;
}
$data=$redis->hmget($hash, array(
  'allnow',
  'allday',
  'firstlogin',
  'sale',
  'service',
  'secondlogin',
  'login',
  'nolog',
  'history',
  'allweek',
  'allmonth',
  'allyear',
  'denglu',
  'loginnum',
  'nologinnum',
  'alldaycountry',
  'daycountry',
  'allweekcountry',
  'weekcountry',
  'monthcountry',
  'allyearscountry',
  'yearcountry',
));
// print_r($data);


$allnow=$data['allnow'];
$allday=$data['allday'];
$firstlogin=$data['firstlogin'];
$sale=$data['sale'];
$service=$data['service'];
$second=$data['secondlogin'];
$login=$data['login'];
$nolog=$data['nolog'];
$history=$data['history'];
$allweek=$data['allweek'];
$allmonth=$data['allmonth'];
$allyear=$data['allyear'];
$denglu=$data['denglu'];
$loginnum=$data['loginnum'];
$nologinnum=$data['nologinnum'];
$alldaycountry=$data['alldaycountry'];
$daycountry=$data['daycountry'];
$allweekcountry=$data['allweekcountry'];
$weekcountry=$data['weekcountry'];
$monthcountry=$data['monthcountry'];
$allyearscountry=$data['allyearscountry'];
$yearcountry=$data['yearcountry'];



require(ROOT . 'view/iwocar5/4S_ServiceDirector_Main.html');
 ?>
